package com.zhouxiaoge.职责链模式.one;

/**
 * @author 周小哥 gqzmy@163.com 2022/10/8 13:15
 */

public abstract class Handler {

    private Handler handler;

    private String name;

    public Handler(String name) {
        this.name = name;
    }

    public void setHandler(Handler handler) {
        this.handler = handler;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public Handler getHandler() {
        return handler;
    }

    public abstract void processRequest(ApplyRequest applyRequest);

}
